package io.acna.blog.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import io.acna.basedao.mybatis.service.impl.BaseService;
import io.acna.blog.core.IndieSession;
import io.acna.blog.core.TagType;
import io.acna.blog.dao.TagMapper;
import io.acna.blog.entities.Tag;
import io.acna.blog.service.ITagService;
import io.acna.mybatis.plugins.core.IndieCondition;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service(version = "0.0.1")
public class TagService extends BaseService<Tag> implements ITagService {

    private final TagMapper tagDao;
    public static final String COLUMN_NAME = "tag_name";
    public static final String FIELD_ID_NAME = "tagId";

    @Autowired
    public TagService(TagMapper tagDao) {
        super(tagDao, COLUMN_NAME, FIELD_ID_NAME);
        this.tagDao = tagDao;
    }

    @Override
    public long save(Tag tag, IndieSession session) {
        return 0;
    }

    @Override
    public void remove(long id, IndieSession session) {

    }

    @Override
    public List<Tag> findList(IndieCondition condition, TagType type) {
        return null;
    }

    @Override
    public void addArticle(long id, long articleId) {

    }

    @Override
    public void delArticle(long id, long articleId) {

    }
}
